class SearchModel {
  String? moduleType;
  List<SearchModelItems>? items;

  SearchModel({this.moduleType, this.items});

  SearchModel.fromJson(Map<String, dynamic> json) {
    moduleType = json['moduleType'];
    if (json['items'] != null) {
      items = <SearchModelItems>[];
      json['items'].forEach((v) {
        items!.add(new SearchModelItems.fromJson(v));
      });
      print(items);
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['moduleType'] = this.moduleType;
    if (this.items != null) {
      data['items'] = this.items!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class SearchModelItems {
  String? title;
  SearchModelInfo? extInfo;

  SearchModelItems({this.title, this.extInfo});

  SearchModelItems.fromJson(Map<String, dynamic> json) {
    title = json['title'];
    extInfo = json['extInfo'] != null
        ? new SearchModelInfo.fromJson(json['extInfo'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    if (this.extInfo != null) {
      data['extInfo'] = this.extInfo!.toJson();
    }
    return data;
  }
}

class SearchModelInfo {
  String? numText;

  SearchModelInfo({this.numText});

  SearchModelInfo.fromJson(Map<String, dynamic> json) {
    numText = json['numText'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['numText'] = this.numText;
    return data;
  }
}
